home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 6
/
MacMania 6.toast
/
/
Tools&Utilities
/
EnterAct Stuff
/
Read Res project
/
Read_Res Headers
/
CodeResHelper.h
< prev
next >
Wrap
Text File
|
1994-12-22
|
1KB
|
37 lines
/* CodeResHelper.h - prototypes for helper functions */
/* Resources */
short OpenOrCreateResourceFork(StringPtr fileName);
void DeleteAllExistingRsrcs(long theType, short theNum);
/* Dialogs */
void GetDlogOrigin (short dlogID, Point *where);
Boolean GetAndAlignDialog(short resID);
void FrameDialogItem(DialogPtr theDP,short theItem);
void SetEText(DialogPtr dPtr, short theItem, StringPtr newStr);
void GetEText(DialogPtr dPtr, short theItem, StringPtr currentStr);
void SetCheck(DialogPtr dPtr, short chkItem, short zeroMeansNoCheck);
void GetCheck(DialogPtr dPtr, short chkItem, Boolean *trueIfChecked);
Handle GetButton(DialogPtr dPtr, short btnItem);
void HiliteDlgControl(DialogPtr dPtr, short btnItem, short state);
/* Pascal strings */
void CopyPStr(Byte *srcStr, Byte *dstStr);
void AppendPStr(Byte *s1, Byte *s2);
Boolean PEqualStrs(Byte *aStr, Byte *bStr);
/* Files, names and locations */
Byte *FullPathNameFromDirectory(long DirID, short vRefNum, Byte *s);
Byte *FullPathNameFromVRefNum(short vRefNum, Byte *s);
short OpenWorkingDirectoryFromFullName(char *name, short len);
/* Memory allocation */
void InitTempCodeMemory(void);
void *TMalloc(size_t size);
void *Trealloc(void *ptr, size_t size);
void Tfree(void *ptr);
void TFreeAll(void);
void *Fmalloc(size_t size);
void *Frealloc(void *ptr, size_t size);
void Ffree(void *ptr);
void FFreeAll(void);
/* Misc */
void NullOut(char *str, long nBytes);
Boolean TaskWasInterrupted(void);
Boolean CheckInWithCallingApp(void);